package com.fss.secondHand.dao;
import com.fssDataModels.*;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.Iterator;
import java.util.List;
import org.hibernate.HibernateException;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;
import org.hibernate.tool.hbm2ddl.SchemaExport;

public interface SecondHandDao {
	//CRUD functions
	
	public TbSecondhandItem getSecondHandItem(Integer itemId);
	
	public List getSecondHandItems(TbUser author);
	//return: - 0 --> failed
	//		  - 1 --> success
	public int insertSecondHandItem(TbSecondhandItem item);
	
	//return: - 0 --> failed
	//		  - 1 --> success
	public int updateSecondHandItem(TbSecondhandItem item);
	
	//function: deleteActivity
	//return: - 0 --> not deleted
	//		  - 1 --> deleted
	public int deleteSecondHandItem(TbSecondhandItem item);
}
